package com.fxm.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author fxm
 * @version V1.0.0
 * @description: 用户信息表
 * @date 2021/02/04 15:49
 */
@Data
public class User implements Serializable {
    /**
     * 主键ID
     */
    @Excel(name = "编号", width = 10, height = 20)
    private String id;
    /**
     * 用户唯一标识
     */
    @Excel(name = "唯一标识", width = 50)
    private String openid;
    /**
     * 用户名
     */
    @Excel(name = "昵称", width = 20)
    private String username;
    /**
     * 头像url地址
     */
    @Excel(name = "头像", type = 2,width = 10)
    private String picPath;
    /**
     * 用户积分
     */
    @Excel(name = "积分", width = 20)
    private Integer integral;
    /**
     * 密码
     */
    private String password;
    /**
     * 性别（0=其他 1=男 2=女）
     */
    @Excel(name = "性别", replace = {"其它_0", "男_1", "女_2", "-_null"}, width = 20)
    private Integer sex;
    /**
     * 国家
     */
    @Excel(name = "国家", width = 20, replace = {"-_null"})
    private String country;
    /**
     * 省份
     */
    @Excel(name = "省份", width = 20, replace = {"-_null"})
    private String province;
    /**
     * 城市
     */
    @Excel(name = "城市", width = 20, replace = {"-_null", "-_市"})
    private String city;

    /**
     * 删除标记：0=正常;1=已删除
     */
    private Integer deleted;
}
